<?php
use think\facade\Route;

/** 砍价路由 */
Route::group('bargain', function () {
	/** 无需登录 */
	Route::group(function () {

	    Route::get('detail', 		'@getSponsorBargainInfo');

	})->middleware(['withoutLogin']);
	/** 需登录 */
	Route::post('doit', 		'@doBargain');

})->prefix('\app\promotion\service\Bargain');

/** 拼团路由 */
Route::group('pintuan', function () {
	/** 无需登录 */
	Route::group(function () {
		Route::get('detail', 		'@getUserTuanDetail');
	})->middleware(['withoutLogin']);
	/** 需登录 */
	Route::post('create', 		'@createUserTuan');
	Route::post('join', 		'@joinUserTuan');
	Route::get('list', 			'@getCourseTuanList');

})->prefix('\app\promotion\service\Tuan');

